package com.wjk.Demo09;

public class AddableDemo {
    public static void main(String[] args) {
        useAddable((int x,int y)->
             x+y
        );
    }

    private static void useAddable(Addable a){
        int sum=a.add(10,20);
        System.out.println(sum);
    }
}

interface Addable{
    int add(int x,int y);
}
